package com.swxc.smartorder.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.swxc.smartorder.R;
import com.swxc.smartorder.entity.ImageEntity;
import com.swxc.smartorder.utils.ImageDisplayUtil;

import java.util.List;

/**
 * Author   Administrator
 * Date     2018/4/13
 * Desc     eg
 *
 * @author Administrator
 */
public class AdapterReplyImage extends BaseQuickAdapter<ImageEntity, BaseViewHolder> {
    public AdapterReplyImage(@Nullable List<ImageEntity> data) {
        super(R.layout.item_reback_image, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ImageEntity item) {
        ImageView view = helper.getView(R.id.iv_cover);
        ImageDisplayUtil.showImageView(mContext, item.getAccessUrl(), view);

    }
}
